<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>首页</title>
<link href="c/base.css" rel="stylesheet" type="text/css">
<link href="c/toefl.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="c/bootstrap.min.css">
<script type="text/javascript" src="j/jquery-2.1.0.js"></script>
<script src="j/bootstrap.min.js"></script>

<script src="j/common.js" type="text/javascript">
	
</script>
</head>

<body>
<div class="doc1180">
	<div class="header">
    	<div class="logo"><a href="####"><img src="i/logo.png"></a></div>
    	<div class="headerUser">
        	<ul>
            	<li class="headerUserPic"><a href="###"><img src="i/30x30.png"></a></li>
                <li class="headerUserName"><a href="###">用户名ABCDEF</a></li>
                <li class="headerUserNotice">通知<a href="###">14</a></li>
            </ul>
        </div>
    </div>
</div>

<div class="menu">
	<div class="doc1180">
   	  <div class="menuLink">
        	<ul class="fn-clear">
            	<li class="active"><a href="/admin">首页</a></li>
            	<li class="dropdown">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#">
						系统管理 <span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="/querySysActiveAll" target="ifr">课程活动</a></li>
						<li><a href="/getLinks" target="ifr">网站链接</a></li>
					</ul>
				</li>
            	<li class="dropdown">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#">
						用户管理 <span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="/getTeachers" target="ifr">讲师管理</a></li>
						<li><a href="/getUsers" target="ifr">用户管理</a></li>
					</ul>
				</li>
            	
                
                <li><a href="toToeflAdmin" target="ifr">托福人</a></li>
                <li><a href="/togrouplist" target="ifr">群组聊天</a></li>
                <li><a href="/queryClassInforAllAdmin" target="ifr">公开课</a></li>
                <li><a href="toAdminCastle" target="ifr">福利城堡</a></li>
            </ul>
        </div>
        <div class="fenxiang">
        	<a href="#" class="weibo"><img src="i/weibo.png" ></a>
            <a href="#" class="weixin"><img src="i/weixin.png" ></a>
        </div>
    </div>
</div>
<iframe id = "ifr" name="ifr"  src="toMain" style="width: 99vw;height: 84vh;" frameborder="no"></iframe>
<iframe src="toFooter" style="width: 99vw;height: 32vh;" frameborder="no"></iframe>


<script type="text/javascript">

  // 计算页面的实际高度，iframe自适应会用到
  function calcPageHeight(doc) {
      var cHeight = Math.max(doc.body.clientHeight, doc.documentElement.clientHeight);
      var sHeight = Math.max(doc.body.scrollHeight, doc.documentElement.scrollHeight);
      var height  = Math.max(doc.body.clientHeight, doc.body.scrollHeight);
      return height
  }
  var ifr = document.getElementById('ifr')
  ifr.onload = function() {
  	  var inter = window.setInterval(function() {
  	  	  var iDoc = ifr.contentDocument || ifr.document
	      var height = calcPageHeight(iDoc)
	      ifr.style.height = height + 'px'
  	  	
  	  },100);
  	  window.setTimeout(function() {
  	  	window.clearInterval(inter);
  	  },10000);
      
  }
</script>
<!-- 代码结束 -->
</body>
</html>
